package com.ruralflow.controller;

import com.ruralflow.common.core.controller.BaseController;
import com.ruralflow.common.core.domain.AjaxResult;
import com.ruralflow.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bairimengchang
 * @version 1.0
 * @description 用于提供各模块统计数据
 * @date 2025/2/9
 */
@RestController
@RequestMapping("/statistics/statistics")
public class StatisticsController extends BaseController {

    @Autowired
    private StatisticsService statisticsService;

    /**
     * 查询各模块概览数据
     */
    @RequestMapping("/getModuleSummaryData")
    public AjaxResult getModuleSummaryData() {
        return success(statisticsService.selectModuleSummaryData());
    }

}
